package com.xzy.urp.mapper;

import com.xzy.urp.pojo.entity.CourseTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xzy.urp.pojo.vo.CourseTimeVO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xzy
 * @since 2022-02-17
 */
public interface CourseTimeMapper extends BaseMapper<CourseTime> {

    List<CourseTimeVO> getByTeacherId(Long tId, Integer semester);

    List<CourseTimeVO> getByStudentId(Long sId,Integer semester);

    Integer countByWeek(Long tId,Integer start,Integer end);
}
